#!/bin/bash

# Install miniforge
yay -S miniforge

# add user into root group
sudo usermod -aG root $USER

# config env
sudo ln -s /opt/miniforge/etc/profile.d/conda.sh /etc/profile.d/conda.sh

# remove invalid clear
sudo rm -rf /opt/miniforge/bin/clear

# create cache dir
sudo mkdir /opt/miniforge/cache
sudo chmod 775 -R /opt/miniforge
sudo /opt/miniforge/bin/conda config --system --add pkgs_dirs /opt/miniforge/cache
